﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using CodeIn.Diagnostics;
using CodeIn.Ui.Dock;
using System.Windows.Controls;
using System.Windows.Threading;
using CodeIn.Core.Modules;
using CodeIn.Core;

namespace CodeIn.Modules.Misc.Dummy {
	public class DummyModuleChain : BaseModule {
		protected override void InitializeOverride() {
		}

		protected override bool CanExecuteOverride(string[] args) {
			return true;
		}

		protected override void ExecuteOverride(string[] args) {
			LocalTrace.WriteLine("Sleeping");
			Thread.Sleep(1000);
			LocalTrace.WriteSeparator();
			LocalTrace.WriteLine("Invoking command \"dummy!\"");
			ModuleManager.Instance.CallSync("dummy!");
			LocalTrace.WriteSeparator();

			LocalTrace.WriteLine("Sleeping");
			Thread.Sleep(1000);
			LocalTrace.WriteSeparator();
			LocalTrace.WriteLine("Invoking command \"dummy!\"");
			ModuleManager.Instance.CallSync("dummy!");
			LocalTrace.WriteSeparator();

			LocalTrace.WriteLine("Sleeping");
			Thread.Sleep(1000);
			LocalTrace.WriteSeparator();
			LocalTrace.WriteLine("Invoking command \"dummy!\"");
			ModuleManager.Instance.CallSync("dummy!");
			LocalTrace.WriteSeparator();
		}
	}
}
